package com.mtsmda.jpa.domain.joinedTable;

import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@PrimaryKeyJoinColumn(referencedColumnName = "idPC")
@Table(name = "NOTEBOOK")
public class Notebook extends Computer {

	private static final long serialVersionUID = 1L;

	private Double displayDiagonal;

	public Notebook() {
		super();
	}

	public Notebook(Integer volumeHdd, Integer volumeRam, Double displayDiagonal) {
		super(volumeHdd, volumeRam);
		setDisplayDiagonal(displayDiagonal);
	}

	public Double getDisplayDiagonal() {
		return displayDiagonal;
	}

	public void setDisplayDiagonal(Double displayDiagonal) {
		this.displayDiagonal = displayDiagonal;
	}

}